import dayjs from 'dayjs'
import React, { useState } from 'react'
import { Calendar } from 'antd-mobile'
import './Pw.css'
const were = require('../../assents/44.png')
const Pw = () => {
    const today = dayjs()
    const [val, setVal] = useState<[Date, Date] | null>(() => [
        today.subtract(2, 'day').toDate(),
        today.add(2, 'day').toDate(),
    ])
    return (
        <div>
            <span className='ttt'>票务</span>
            <Calendar
                selectionMode='range'
                value={val}
                onChange={val => {
                    setVal(val)
                }}
            />
            <div>
                <img className='ed' src={were} alt="" />
            </div>
        </div>
    )
}

export default Pw
